﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IDAL;

namespace DAL
{
	public partial class DBSession 
    {
        public int SaveChanges(string type)
        {
            return new DBContextFactory().GetDbContext(type).SaveChanges();
        }
      
       private	IObject_DAL iObject_DAL;
		public IObject_DAL IObject_DAL
		{
			get
			{
				if(iObject_DAL==null)
					iObject_DAL= new Object_DAL();
				return iObject_DAL;
			}
			set
			{
				iObject_DAL= value;
			}
		}
    }

	public partial class DBSession:IDBSession
    {

		#region 01 数据接口 IAdRelease_DAL
	    private	IAdRelease_DAL iAdRelease_DAL;
		public IAdRelease_DAL IAdRelease_DAL
		{
			get
			{
				if(iAdRelease_DAL==null)
					iAdRelease_DAL= new AdRelease_DAL();
				return iAdRelease_DAL;
			}
			set
			{
				iAdRelease_DAL= value;
			}
		}
		#endregion

		#region 02 数据接口 IAdvertisingRecommendation_DAL
	    private	IAdvertisingRecommendation_DAL iAdvertisingRecommendation_DAL;
		public IAdvertisingRecommendation_DAL IAdvertisingRecommendation_DAL
		{
			get
			{
				if(iAdvertisingRecommendation_DAL==null)
					iAdvertisingRecommendation_DAL= new AdvertisingRecommendation_DAL();
				return iAdvertisingRecommendation_DAL;
			}
			set
			{
				iAdvertisingRecommendation_DAL= value;
			}
		}
		#endregion

		#region 03 数据接口 IAmazonBrowseNode_DAL
	    private	IAmazonBrowseNode_DAL iAmazonBrowseNode_DAL;
		public IAmazonBrowseNode_DAL IAmazonBrowseNode_DAL
		{
			get
			{
				if(iAmazonBrowseNode_DAL==null)
					iAmazonBrowseNode_DAL= new AmazonBrowseNode_DAL();
				return iAmazonBrowseNode_DAL;
			}
			set
			{
				iAmazonBrowseNode_DAL= value;
			}
		}
		#endregion

		#region 04 数据接口 IAmazonOrder_DAL
	    private	IAmazonOrder_DAL iAmazonOrder_DAL;
		public IAmazonOrder_DAL IAmazonOrder_DAL
		{
			get
			{
				if(iAmazonOrder_DAL==null)
					iAmazonOrder_DAL= new AmazonOrder_DAL();
				return iAmazonOrder_DAL;
			}
			set
			{
				iAmazonOrder_DAL= value;
			}
		}
		#endregion

		#region 05 数据接口 IAmazonOrderFulfillment_DAL
	    private	IAmazonOrderFulfillment_DAL iAmazonOrderFulfillment_DAL;
		public IAmazonOrderFulfillment_DAL IAmazonOrderFulfillment_DAL
		{
			get
			{
				if(iAmazonOrderFulfillment_DAL==null)
					iAmazonOrderFulfillment_DAL= new AmazonOrderFulfillment_DAL();
				return iAmazonOrderFulfillment_DAL;
			}
			set
			{
				iAmazonOrderFulfillment_DAL= value;
			}
		}
		#endregion

		#region 06 数据接口 IAmazonOrderFulfillmentItem_DAL
	    private	IAmazonOrderFulfillmentItem_DAL iAmazonOrderFulfillmentItem_DAL;
		public IAmazonOrderFulfillmentItem_DAL IAmazonOrderFulfillmentItem_DAL
		{
			get
			{
				if(iAmazonOrderFulfillmentItem_DAL==null)
					iAmazonOrderFulfillmentItem_DAL= new AmazonOrderFulfillmentItem_DAL();
				return iAmazonOrderFulfillmentItem_DAL;
			}
			set
			{
				iAmazonOrderFulfillmentItem_DAL= value;
			}
		}
		#endregion

		#region 07 数据接口 IAmazonOrdersDetail_DAL
	    private	IAmazonOrdersDetail_DAL iAmazonOrdersDetail_DAL;
		public IAmazonOrdersDetail_DAL IAmazonOrdersDetail_DAL
		{
			get
			{
				if(iAmazonOrdersDetail_DAL==null)
					iAmazonOrdersDetail_DAL= new AmazonOrdersDetail_DAL();
				return iAmazonOrdersDetail_DAL;
			}
			set
			{
				iAmazonOrdersDetail_DAL= value;
			}
		}
		#endregion

		#region 08 数据接口 IAmazonOrdersShippingAddress_DAL
	    private	IAmazonOrdersShippingAddress_DAL iAmazonOrdersShippingAddress_DAL;
		public IAmazonOrdersShippingAddress_DAL IAmazonOrdersShippingAddress_DAL
		{
			get
			{
				if(iAmazonOrdersShippingAddress_DAL==null)
					iAmazonOrdersShippingAddress_DAL= new AmazonOrdersShippingAddress_DAL();
				return iAmazonOrdersShippingAddress_DAL;
			}
			set
			{
				iAmazonOrdersShippingAddress_DAL= value;
			}
		}
		#endregion

		#region 09 数据接口 IAmazonOrdersTotal_DAL
	    private	IAmazonOrdersTotal_DAL iAmazonOrdersTotal_DAL;
		public IAmazonOrdersTotal_DAL IAmazonOrdersTotal_DAL
		{
			get
			{
				if(iAmazonOrdersTotal_DAL==null)
					iAmazonOrdersTotal_DAL= new AmazonOrdersTotal_DAL();
				return iAmazonOrdersTotal_DAL;
			}
			set
			{
				iAmazonOrdersTotal_DAL= value;
			}
		}
		#endregion

		#region 10 数据接口 IAmazonRefinementsInfo_DAL
	    private	IAmazonRefinementsInfo_DAL iAmazonRefinementsInfo_DAL;
		public IAmazonRefinementsInfo_DAL IAmazonRefinementsInfo_DAL
		{
			get
			{
				if(iAmazonRefinementsInfo_DAL==null)
					iAmazonRefinementsInfo_DAL= new AmazonRefinementsInfo_DAL();
				return iAmazonRefinementsInfo_DAL;
			}
			set
			{
				iAmazonRefinementsInfo_DAL= value;
			}
		}
		#endregion

		#region 11 数据接口 IAppKey_DAL
	    private	IAppKey_DAL iAppKey_DAL;
		public IAppKey_DAL IAppKey_DAL
		{
			get
			{
				if(iAppKey_DAL==null)
					iAppKey_DAL= new AppKey_DAL();
				return iAppKey_DAL;
			}
			set
			{
				iAppKey_DAL= value;
			}
		}
		#endregion

		#region 12 数据接口 ICompetitivePrice_DAL
	    private	ICompetitivePrice_DAL iCompetitivePrice_DAL;
		public ICompetitivePrice_DAL ICompetitivePrice_DAL
		{
			get
			{
				if(iCompetitivePrice_DAL==null)
					iCompetitivePrice_DAL= new CompetitivePrice_DAL();
				return iCompetitivePrice_DAL;
			}
			set
			{
				iCompetitivePrice_DAL= value;
			}
		}
		#endregion

		#region 13 数据接口 IFeedsInfo_DAL
	    private	IFeedsInfo_DAL iFeedsInfo_DAL;
		public IFeedsInfo_DAL IFeedsInfo_DAL
		{
			get
			{
				if(iFeedsInfo_DAL==null)
					iFeedsInfo_DAL= new FeedsInfo_DAL();
				return iFeedsInfo_DAL;
			}
			set
			{
				iFeedsInfo_DAL= value;
			}
		}
		#endregion

		#region 14 数据接口 IFulfillmentRecommendation_DAL
	    private	IFulfillmentRecommendation_DAL iFulfillmentRecommendation_DAL;
		public IFulfillmentRecommendation_DAL IFulfillmentRecommendation_DAL
		{
			get
			{
				if(iFulfillmentRecommendation_DAL==null)
					iFulfillmentRecommendation_DAL= new FulfillmentRecommendation_DAL();
				return iFulfillmentRecommendation_DAL;
			}
			set
			{
				iFulfillmentRecommendation_DAL= value;
			}
		}
		#endregion

		#region 15 数据接口 IGlobalSellingRecommendation_DAL
	    private	IGlobalSellingRecommendation_DAL iGlobalSellingRecommendation_DAL;
		public IGlobalSellingRecommendation_DAL IGlobalSellingRecommendation_DAL
		{
			get
			{
				if(iGlobalSellingRecommendation_DAL==null)
					iGlobalSellingRecommendation_DAL= new GlobalSellingRecommendation_DAL();
				return iGlobalSellingRecommendation_DAL;
			}
			set
			{
				iGlobalSellingRecommendation_DAL= value;
			}
		}
		#endregion

		#region 16 数据接口 IInventoryRecommendation_DAL
	    private	IInventoryRecommendation_DAL iInventoryRecommendation_DAL;
		public IInventoryRecommendation_DAL IInventoryRecommendation_DAL
		{
			get
			{
				if(iInventoryRecommendation_DAL==null)
					iInventoryRecommendation_DAL= new InventoryRecommendation_DAL();
				return iInventoryRecommendation_DAL;
			}
			set
			{
				iInventoryRecommendation_DAL= value;
			}
		}
		#endregion

		#region 17 数据接口 IListingQualityRecommendation_DAL
	    private	IListingQualityRecommendation_DAL iListingQualityRecommendation_DAL;
		public IListingQualityRecommendation_DAL IListingQualityRecommendation_DAL
		{
			get
			{
				if(iListingQualityRecommendation_DAL==null)
					iListingQualityRecommendation_DAL= new ListingQualityRecommendation_DAL();
				return iListingQualityRecommendation_DAL;
			}
			set
			{
				iListingQualityRecommendation_DAL= value;
			}
		}
		#endregion

		#region 18 数据接口 IPricingRecommendation_DAL
	    private	IPricingRecommendation_DAL iPricingRecommendation_DAL;
		public IPricingRecommendation_DAL IPricingRecommendation_DAL
		{
			get
			{
				if(iPricingRecommendation_DAL==null)
					iPricingRecommendation_DAL= new PricingRecommendation_DAL();
				return iPricingRecommendation_DAL;
			}
			set
			{
				iPricingRecommendation_DAL= value;
			}
		}
		#endregion

		#region 19 数据接口 IReportsInfo_DAL
	    private	IReportsInfo_DAL iReportsInfo_DAL;
		public IReportsInfo_DAL IReportsInfo_DAL
		{
			get
			{
				if(iReportsInfo_DAL==null)
					iReportsInfo_DAL= new ReportsInfo_DAL();
				return iReportsInfo_DAL;
			}
			set
			{
				iReportsInfo_DAL= value;
			}
		}
		#endregion

		#region 20 数据接口 ISalesRank_DAL
	    private	ISalesRank_DAL iSalesRank_DAL;
		public ISalesRank_DAL ISalesRank_DAL
		{
			get
			{
				if(iSalesRank_DAL==null)
					iSalesRank_DAL= new SalesRank_DAL();
				return iSalesRank_DAL;
			}
			set
			{
				iSalesRank_DAL= value;
			}
		}
		#endregion

		#region 21 数据接口 ISelectionRecommendation_DAL
	    private	ISelectionRecommendation_DAL iSelectionRecommendation_DAL;
		public ISelectionRecommendation_DAL ISelectionRecommendation_DAL
		{
			get
			{
				if(iSelectionRecommendation_DAL==null)
					iSelectionRecommendation_DAL= new SelectionRecommendation_DAL();
				return iSelectionRecommendation_DAL;
			}
			set
			{
				iSelectionRecommendation_DAL= value;
			}
		}
		#endregion

		#region 22 数据接口 ISellerDetailsListing_DAL
	    private	ISellerDetailsListing_DAL iSellerDetailsListing_DAL;
		public ISellerDetailsListing_DAL ISellerDetailsListing_DAL
		{
			get
			{
				if(iSellerDetailsListing_DAL==null)
					iSellerDetailsListing_DAL= new SellerDetailsListing_DAL();
				return iSellerDetailsListing_DAL;
			}
			set
			{
				iSellerDetailsListing_DAL= value;
			}
		}
		#endregion

		#region 23 数据接口 ISellerListing_DAL
	    private	ISellerListing_DAL iSellerListing_DAL;
		public ISellerListing_DAL ISellerListing_DAL
		{
			get
			{
				if(iSellerListing_DAL==null)
					iSellerListing_DAL= new SellerListing_DAL();
				return iSellerListing_DAL;
			}
			set
			{
				iSellerListing_DAL= value;
			}
		}
		#endregion

    }

}